package com.wei.tang.bean;

import java.util.Date;

import com.wei.tang.util.Util;

public class UserBean extends Bean {

	/**
	 * 用户账号
	 */
	private String user_id;
	/**
	 * 用户密码
	 */
	private String user_password;
	/**
	 * 用户手机
	 */
	private String user_phone;
	/**
	 * 用户名称
	 */
	private String user_name;
	/**
	 * 用户性别
	 */
	private String user_sex;
	/**
	 * 用户session
	 */
	private String user_session;
	/**
	 * 用户身份
	 */
	private String user_status;
	/**
	 * 用户头像
	 */
	private String user_head;

	/**
	 * 用户描述
	 */
	private String decription;
	/**
	 * 用户地址
	 */
	private String user_location;
	/**
	 * 登录时间
	 */
	private String user_time;
	/**
	 * 忘记密码
	 */
	private String user_tag;

	public UserBean() {
	}

	/**
	 * 使用user_phone，user_password，user_tag初始化UserBean类
	 * 
	 * @param _user_phone
	 * @param _user_password
	 * @param _user_tag
	 */
	public UserBean(String _user_phone, String _user_password, String _user_tag) {
		this.user_password = _user_password;
		this.user_phone = _user_phone;
		this.user_tag = _user_tag;
		this.user_name = _user_phone;
		this.user_sex = "m";
		this.user_status = "s";
		this.user_time = new Date().getTime() + "";
		this.user_head = "default_head";
		this.user_session = Util.createUserSession(_user_phone);
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getUser_password() {
		return user_password;
	}

	public void setUser_password(String user_password) {
		this.user_password = user_password;
	}

	public String getUser_phone() {
		return user_phone;
	}

	public void setUser_phone(String user_phone) {
		this.user_phone = user_phone;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getUser_sex() {
		return user_sex;
	}

	public void setUser_sex(String user_sex) {
		this.user_sex = user_sex;
	}

	public String getUser_session() {
		return user_session;
	}

	public void setUser_session(String user_session) {
		this.user_session = user_session;
	}

	public String getUser_status() {
		return user_status;
	}

	public void setUser_status(String user_status) {
		this.user_status = user_status;
	}

	public String getUser_head() {
		return user_head;
	}

	public void setUser_head(String user_head) {
		this.user_head = user_head;
	}

	public String getDecription() {
		return decription;
	}

	public void setDecription(String decription) {
		this.decription = decription;
	}

	public String getUser_location() {
		return user_location;
	}

	public void setUser_location(String user_location) {
		this.user_location = user_location;
	}

	public String getUser_time() {
		return user_time;
	}

	public void setUser_time(String user_time) {
		this.user_time = user_time;
	}

	public String getUser_tag() {
		return user_tag;
	}

	public void setUser_tag(String user_tag) {
		this.user_tag = user_tag;
	}

	@Override
	public String toString() {
		return "UserBean [user_id=" + user_id + ", user_password=" + user_password + ", user_phone=" + user_phone
				+ ", user_name=" + user_name + ", user_sex=" + user_sex + ", user_session=" + user_session
				+ ", user_status=" + user_status + ", user_head=" + user_head + ", decription=" + decription
				+ ", user_location=" + user_location + ", user_time=" + user_time + ", user_tag=" + user_tag + "]";
	}

}
